<?php

declare(strict_types=1);

namespace app\common\model\im;

use think\Model;
use app\common\traits\ModelTrait;

/**
 * 聊天群组-模型
 * @author:kaige
 * @update:2022-06-12
 * @copyright ©2022 泉州市盛筑信息科技有限公司 版权所有
 */
class ImGroup extends Model
{
    //开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    protected $createTime = 'create_time';
    protected $updateTime = null;

    // 设置字段信息(避免多一次查询的开销)
    protected $schema = [
        'id'            => 'int',
        'name'          => 'string',
        'type'          => 'int',
        'icon'          => 'string',
        'icon_color'    => 'string',
        'sort'          => 'int',
        'create_uid'     => 'int',
        'create_name'   => 'string',
        'create_time'   => 'string',
        'uid'           => 'int',
        'nickname'      => 'string',
        'chat_head'     => 'string',
        'bn'            => 'string',
        'status'        => 'int',
        'explain'       => 'string',
        'notice'        => 'string',
        'app_type'      => 'int',
        'url_pc'        => 'string',
        'url_mp'        => 'string',
        'dept_id'       => 'int',
        'company_id'    => 'int',
    ];

    use ModelTrait;
}
